<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<link rel="stylesheet" type="text/css" href="css/index.css"/>
		<script type="text/javascript">
			function sub()
			{
				obj = document.getElementsByName("phoneNum");
			    check_val = [];
			    for(k in obj){
			        if(obj[k].checked)
			            check_val.push(obj[k].value);
			    }
			    if(check_val.length>0)
			    {
			    	document.getElementById("phone").value=check_val;
			    	document.getElementById("teacForm").submit();
			    }else{
			    	alert("请选择需要接收短信的人员号码！");
			    }
			    
			}
		</script>
	</head>
	<body>
		<div class="detailPage">
			<!--<div class="detailHead">
				<p>您选择的是：1-0101</p>
				<img src="img/close.png"/>
			</div>-->
			<form name="teacForm" id="teacForm" action="<%=request.getContextPath()%>/SmsServlet" method="post">
			<input type="hidden" name="phone" id="phone"/>
			<div class="detailContent">
				<ul>
					<li><h4>所属辖区：</h4><span>云岩区街道蔡关社区</span></li>
					<li><h4>姓　　名：</h4><span>马鹏程</span></li>
					<li><h4>电话号码：</h4><span>15645544131</span></li>
					<li><h4>证件号码：</h4><span>520102196908032115</span></li>
					<li><h4>性　　别：</h4><span>男</span></li>
					<li><h4>民　　族：</h4><span>汉族</span></li>
					<li><h4>出生日期：</h4><span>1969-08-03</span></li>
					<li><h4>籍　　贯：</h4><span>四川</span></li>
					<li><h4>文化程度：</h4><span>大学本科</span></li>
					<li><h4>是否非公人士：</h4><span>否</span></li>
					<li><h4>管理类型：</h4><span>常住人口</span></li>
				</ul>
				<div class="lists">
					<div class="message">
						<div class="check">
							<label><input type="checkbox" id="gravida"/>孕龄妇女</label><br />
							<label><input type="checkbox" id="vaccine"/>儿童疫苗</label><br />
							<label><input type="checkbox" id="test"/>儿童体检</label>
						</div>
						<div class="phone">
							<dl>
								<dt>　通讯录</dt>
								<dd><input type="checkbox" name="phoneNum" value="13511927841"/>13511927841</dd>
								<dd><input type="checkbox" name="phoneNum" value="18985130729"/>18985130729</dd>
								<dd><input type="checkbox" name="phoneNum" value="15185138161"/>15185138161</dd>
								<dd><input type="checkbox" name="phoneNum" value="13608569887"/>13608569887</dd>
								<dd><input type="checkbox" name="phoneNum" value="15519111999"/>15519111999</dd>
								<dd><input type="checkbox" name="phoneNum" value="15685185966"/>15685185966</dd>
								<dd><input type="checkbox" name="phoneNum" value="18985130729"/>18985130729</dd>
								<dd><input type="checkbox" name="phoneNum" value="18585048197"/>18585048197</dd>
							</dl>
						</div>	
					</div>
					<div class="submit">
						<input type="text" name="" id="" value="王陶、李兵理" placeholder="请输入收件人"/>
						<textarea name="" rows="" cols="" placeholder="请输入内容">育龄通知： 请接通知后，于三个工作日内到＊＊＊部门接受检查。</textarea>
						<input type="button" value="确认发送" onclick="sub()"/>
					</div>
				</div>
			</div>
			</form>
		</div>
	</body>
</html>


